{template "content","header"}
{template "content","header_public"}
{php $cityid = CITYID;}
<script language="javascript" src="{JS_PATH}changimages.js"></script>
<!-- 内容begin-->
<div id="main_bg">
  <!-- 板块1begin-->
  <div id="main01">
    <div id="m01l">
         <div id="m01l_slide"><div id=imgADPlayer></div>
      <script language="javascript" src="{APP_PATH}caches/poster_js/15.js"></script>
      <script>
      PImgPlayer.init( "imgADPlayer", 290, 238 ); 
      </script>
	</div>
      <div class="m01l_b">
        <div class="m01l_b_title">
          <h1><a href="#">互动家装</a></h1>
          在这里你可以发挥自己的设计天赋</div>
        <div class="content"><a href="./xnjz_c.html"><img src="{CSS_PATH}images/jiancaixuangou_08.gif" /></a><a href="./xnjz_c.html"><img src="{CSS_PATH}images/jiancaixuangou_08.gif" /></a></div>
      </div>
    </div>
    <div id="m01m">
      <div class="m01m_tittle"><img src="{CSS_PATH}images/zindex_44.gif" />
        <h1><a href="#">今日关注</a></h1>
        <a href="#">[卖场]</a><a href="index.php?m=content&c=user&a=company">[装饰]</a><a href="index.php?m=content&c=index&a=lists&catid={PRODUCTCATID}">[建材]</a></div>
      <div class="m01m_key">
        {pc:content  action="position" posid="1"  order="id DESC"  num="1" return="info"}
             {loop $info $v}
        <h1><a href="{$v[url]}">{$v['title']}</a></h1>
        <p>{str_cut($v['description'],100)}<a href="{$v[url]}">[详细内容]</a></p>
           {/loop}
           
            {/pc}
      </div>
      <!-- 
      <div class="m01m_first">
      
        {pc:content   action="lists" catid="24" order="id DESC" thumb="1" num="1" return="info"}
             {loop $info $v}
             <div class="m01m_ad"><a href="{$v[url]}"><img src="{thumb($v[thumb],98,48)}" /></a></div>
        <div class="m01m_ad_content"><a href="{$v[url]}">{str_cut($v[title],20)}</a></div>
                {/loop}
           
            {/pc}
      
       
      </div> -->
      <ul>
       
         {pc:content  action="position" posid="1"  order="listorder DESC"  num="5"}
            	
                    {loop $data $r}
                     <li><a href="{$r['url']}" title="{str_cut($r['title'],30)}">{$r['title']}</a></li>
         
                    {/loop}
                    
            {/pc}
      </ul>
    </div>
    <div id="m01r">
      <div class="left"><img src="{CSS_PATH}images/zindex_51.gif" /></div>
      <div class="m01r_tool">
        <div class="m01r_tool01">
          <a href="{APP_PATH}index.php?m=member&c=index&a=register&siteid={$siteid}" class="inputbuttonr"/>免费注册</a>
          <a href="{APP_PATH}index.php?m=member&c=index&a=login&forward={urlencode(HTTP_REFERER)}&siteid={$siteid}" class="inputbuttonl"/>快速登录</a>
        </div>
        <ul>
          <li><img src="{CSS_PATH}images/index_1_9.gif" /><a href="#">装修材料及人员计算器</a></li>
          <li><img src="{CSS_PATH}images/index_1_91.gif" /><a href="#">装修一站通</a></li>
          <li><img src="{CSS_PATH}images/index_1_92.gif" /><a href="#">虚拟样板间</a></li>
          <li><img src="{CSS_PATH}images/index_1_93.gif" /><a href="#">装修合同</a></li>
        </ul>
      </div>
      <div class="right"><img src="{CSS_PATH}images/zindex_54.gif" /></div>
      <div class="m01r_b">
      <form method="post" action="{APP_PATH}index.php?m=member&c=content&a=publish" id="myform" name="myform">
	<input type="hidden" value="{ZHAOBIAO}" name="info[catid]">
        <div class="m01r_tittle">
          <h1><a href="#">我要装修</a></h1>
          <span style="float:left; margin:10px auto 50px 3px; color:#f20c00;">|</span><a href="index.php?m=content&c=user&a=buy_product">重庆建材求购</a><tt>[带*为必填]</tt></div>
       <ul>
          <li>
            <label>*所在城市：</label>
            <span id="citydiv"></span> &nbsp;区域：<span id="area">  <select><option>请选择</option></select></span>
           </li>
          <li>
            <label>*联系电话：</label>
            <input name="info[phone]" id="phone" style="width:54px; height:14px;" type="text" /> &nbsp;面积：<input id="size" name="info[size]" style="width:54px; height:14px;" type="text" /> ㎡
            </li>
          <li>
            <label>装修空间：</label>
            <span id="decoration_space"></span>
            &nbsp;预算：<input name="info[budget]" id="budget" style="width:54px; height:14px;" type="text" /> 万</li>
           <li>
            <label>*你的户型：</label>
            <span id="house_type">  <select><option>请选择</option></select></span>
          </li>
          <li>
            <label>风格分类：</label>
            <span id="decoration_style"></span>
          </li>
         
          <li>
            <label>*你所在的小区：</label>
            <input name="info[title]" id="title" style="width:84px; height:14px;" type="text" />
            <tt>如隆鑫花漾湖</tt></li>
          <li>
            <label>*联系人：</label>
            <input name="info[name]" id="name" style="width:84px; height:14px;" type="text" />
            
            
          </li>
          <li>
            <label>QQ\其他：</label>
            <input name="info[qq]" id="qq" style="width:84px; height:14px;" type="text" />
            <tt>方便联系(选填)</tt></li>
          <li>
            <label>*你的装修要求：</label>
            <input id="description" name="info[description]" style="width:144px; height:14px;" type="text" />
          </li>
          <li>
            <label>*验证码：</label>
            <input name="" style="width:42px; height:14px;" type="text" /> {form::checkcode('code_img', '4', '14', 84, 24)}
            <input name="dosubmit" onclick="return sendzhaobiao({$sendsure});" type="submit" class="inputbutton2" value="提交" />
          </li>
        </ul>

      </div>
      </form>
    </div>
  </div>
  <!-- 板块1end-->
  <!-- 板块2begin-->
  <div id="main02">
    <div class="m02l">
      <div class="m02l_title">
        <h1><a href="{APP_PATH}index.php?m=content&c=index&a=pic">重庆优秀装饰案例</a></h1>
        <tt>
		{pc:content  action="get_decoration_style"  order="listorder DESC" num="6" return="data"}
			{loop $data $v}  
				  <a href="{APP_PATH}index.php?m=content&c=index&a=lists&catid={COMPANYCASE}&styleid={$v[linkageid]}" target="_blank">{$v[name]}</a>|      
			{/loop}
			<a href="{APP_PATH}index.php?m=content&c=index&a=pic">更多</a>
		{/pc}
		</tt></div>
      <ul>
       {pc:content action="lists" catid="24" num="25"  order="id DESC" page="$page"}
	       {loop $data $r}
	        <li>
	          <div class="img_bg"><a href="{$r[url]}"><img src="{thumb($r[thumb],150,112)}" width="120" height="90" alt="{$r[title]}"/></a></div>
	          <div class="caption"><a href="{$r[url]}">{$r[title]}</a></div>
	        <!--   <div class="caption01"><a href="./pic_cc.html">爱家丽宝爱家丽宝爱家丽宝</a></div> -->
	        </li>
	       {/loop}			
		{/pc}					
      </ul>
    </div>
    <div class="m02r">
      <div class="m02r_title">
        <h1><a href="{APP_PATH}index.php?m=content&c=index&a=lists&catid={ZHUANGSHIZATAN}">重庆装饰杂谈</a></h1>
        <tt><a href="{APP_PATH}index.php?m=content&c=index&a=lists&catid={ZHUANGSHIZATAN}">更多>></a></tt> </div>
      <div class="m02r_first">
        <div class="m02r_ad"><a href="./zixun_c.html"><img src="{CSS_PATH}images/zindex_811.gif" /></a></div>
        <div class="m02r_ad_content"><a href="./zixun_c.html">2010年家居流行趋势解 分
          析拆解学习如何运用建材、
          风格、家具、家饰
          [详情]</a></div>
      </div>
      <ul>
       {pc:content action="lists" catid="14" num="25"  order="id DESC" page="$page"}
	       {loop $data $r}
	        <li>
	          <a href="{$r[url]}">{$r[title]}</a>
	        </li>
	       {/loop}			
		{/pc}	
       
      </ul>
    </div>
  </div>
  <!-- 板块2end-->
  <!-- 板块3begin-->
  <div id="main03">
    <div class="m03_tittle">
      <div class="left"><img src="{CSS_PATH}images/zindex_78.gif" /></div>
      <div class="menu menu22">
        <div class="left"><img src="{CSS_PATH}images/zindex_84.gif" /></div>
        <div class="menu01 menu11"><a href="index.php?m=content&c=user&a=company">装饰公司频道</a>|<a href="index.php?m=content&c=index&a=lists&catid={ZHAOBIAO}">招标频道</a>|<a href="index.php?m=content&c=index&a=lists&catid={PRODUCTCATID}">卖场频道</a>|<a href="./dazhe.html">折扣频道</a></div>
        <div class="right"><img src="{CSS_PATH}images/zindex_88.gif" /></div>
      </div>
      <div class="right"><img src="{CSS_PATH}images/zindex_82.gif" /></div>
    </div>
    <div class="m03l">
      <div class="m03l_l">
        <div class="m03l_l_title">
          <h1><a href="#">装饰动态</a></h1>
        </div>
        <div class="slide01"><a href="./zixun_c.html"><img src="{CSS_PATH}images/zindex_105.gif" /></a></div>
        <ul>
        {pc:content action="lists" catid="15"  num="8" order="id DESC" page="$page"}
			{loop $data $r}
			 <li><a href="{APP_PATH}index.php?m=content&c=business&a=notice_detail&uid={get_userid_by_username($r[username])}&id={$r['id']}">{$r[title]}</a></li>
			{/loop}
			{/pc}
        </ul>
      </div>
      <div class="m03l_r">
        <div class="m03l_r_title">
          <h1><a href="{APP_PATH}index.php?m=content&c=index&a=lists&catid=20">装饰招标</a></h1>
          <tt><a href="{APP_PATH}index.php?m=content&c=index&a=lists&catid=20">更多>></a></tt><tt><a href="{APP_PATH}index.php?m=content&c=user&a=publish_zhaobiao">[发布装修招标]</a></tt></div>
        <ul>
          {pc:content action="lists" moreinfo="1" catid="20" num="8"  order="id DESC" return="info"}
             {loop $info $svz}
             	
          <dl>
            <dt class="dt_1"><a href="{$svz[url]}">{$svz['name']}</a></dt>
            <dt class="dt_1"><a href="{$vz[url]}">{str_cut($svz['title'],28)}</a></dt>
            <dt class="dt_1"><a href="{$vz[url]}">{$svz['size']}㎡</a></dt>
            <dt class="dt_1"><a href="{$vz[url]}">{$svz['budget']}万</a></dt>
            <dt class="dt_2"><a href="{$vz[url]}">{str_cut($svz['description'],48)}</a></dt>
          </dl>
          {/loop}
              {/pc}  
         
        </ul>
        <div class="ad02"><a href="#"><img src="{CSS_PATH}images/zindex_112.gif" /></a></div>
      </div>
    </div>
    <div class="m03r">
      <div class="m03r_tittle">
        <h1><a href="{APP_PATH}index.php?m=content&c=index&a=lists&catid=26">品位潮流</a></h1>
        <tt><a href="{APP_PATH}index.php?m=content&c=index&a=lists&catid=26">更多>></a></tt> </div>
        
       
       
         {pc:content action="hits" catid="26" num="7" order="views DESC" cache="3600"}
		{php if($data) { }
       	{loop $data $ks $sv}
	       	{if $n==1}  
      <div class="m03r01_l"><a href="{$sv[url]}"><img src="{thumb($r[thumb],96,96)}" /></a><a href="./zixun_c.html">白色简约时尚白色简约时尚白色简约时尚白色简约时尚白色简约时尚</a></div>
      <ul>
      {else}
        <li><a href="{$sv[url]}">{$sv[title]}</a></li>
        {/if}
        
       	{/loop}
       	{php }else{ }
       	
       	{php } }
      	{/pc}
      </ul>
      
      <div class="m03r02_menu">
        <h1 class="on"><a href="#">明星家居</a></h1>
        
      </div>
      <div class="ul_01">
        <div class="li_01"><span class="t"><a href="./pic_cc.html"><img src="{CSS_PATH}images/zindex_811.gif" /></a></span><span class="t01"><a href="./pic_cc.html">刘德华家居</a></span></div>
        <div class="li_01"><span class="t"><a href="./pic_cc.html"><img src="{CSS_PATH}images/zindex_811.gif" /></a></span><span class="t01"><a href="./pic_cc.html">刘德华家居刘德</a></span></div>
      </div>
    </div>
    <div class="m03b">
      <div class="m03b_title">
        <h1><a href="index.php?m=content&c=user&a=company">装饰公司</a></h1>
        <tt><a href="index.php?m=content&c=user&a=company">更多>></a></tt> </div>
      <ul>
		{pc:content action="list_company_all" cityid="$cityid" num="6" order="id DESC" page="$page"}
			{loop $data['data'] $r}
				<li><a target="_blank" href="{APP_PATH}index.php?m=content&c=company&a=company_index&userid={$r[userid]}"><img src="{thumb($r[thumb],150,112)}" /></a><span><a target="_blank" href="{APP_PATH}index.php?m=content&c=company&a=company_index&userid={$r[userid]}">{$r[companyname]}</a></span></li>
			{/loop}
		{/pc}
      </ul>
    </div>
  </div>
  <!-- 板块3end-->
  <!-- 板块4begin-->
  <div id="main04">
    <div class="m04_tittle">
      <div class="left"><img src="{CSS_PATH}images/zindex_115.gif" /></div>
      <div class="menu menu22">
        <div class="left"><img src="{CSS_PATH}images/zindex_84.gif" /></div>
        <div class="menu01 menu11"><a href="index.php?m=content&c=index&a=lists&catid={PRODUCTCATID}">主材商城首页</a>|<a href="index.php?m=content&c=user&a=buy_product">我要求购</a>|<a href="index.php?m=content&c=index&a=lists&catid={DISCOUNTNOTICE}">打折公告</a>|<a href="#">我要发布</a></div>
        <div class="right"><img src="{CSS_PATH}images/zindex_88.gif" /></div>
      </div>
      <div class="right"><img src="{CSS_PATH}images/zindex_82.gif" /></div>
    </div>
    
    <div class="m04l">
       <div class="m04l_tittle"><font class=" p14 color04 strong">热点推荐</font></div>
      <div class="m04l_content">
      {pc:content  action="lists" catid="15" order="listorder ASC"  num="5"}
		{php if($data) { }
       	{loop $data $ks $sv}
	       	{if $n==1}  
        <div class="f"><a href="{APP_PATH}index.php?m=content&c=business&a=notice_detail&uid={get_userid_by_username($sv[username])}&id={$sv[id]}"><img src="{thumb($r[thumb],118,88)}" /></a>
          <p><a href="{APP_PATH}index.php?m=content&c=business&a=notice_detail&uid={get_userid_by_username($sv[username])}&id={$sv[id]}" class="color01 strong">{str_cut($sv[title], 36)}</a></p>
        </div>
        <ul>
        {else}
          <li><em>{php echo $n-1;} 
          </em><a href="{APP_PATH}index.php?m=content&c=business&a=notice_detail&uid={get_userid_by_username($sv[username])}&id={$sv[id]}">{str_cut($sv[title], 36)}</a></li>
         {/if}
        
       	{/loop}
       	{php }else{ }
       	
       	{php } }
      	{/pc}
        </ul>
      </div>
    </div>
    <div class="m04r">
      <div class="m04r_tittle"><a href="index.php?m=content&c=index&a=lists&catid=18" class="p14 strong color04">推荐产品</a><tt><a href="index.php?m=content&c=index&a=lists&catid=18" class="color04">更多>></a></tt></div>
      {pc:content action="get_content"  catid="18"  num="25"  order="id DESC" page="$page"}
	  <ul>
		{loop $data['data'] $r}	
        <li>
		<a href="{$r[url]}"><img src="{thumb($r[thumb],115,100)}" width="115" height="100" alt="{$r[title]}" /></a> 
		<span><a href="{$r[url]}" class="color07">{$r[title]}</a></span> 
		<span><a href="{$r[url]}" class="color06">{$r[price]}元</a></span> 
		</li>
		{/loop}
      </ul>
	  {/pc}
    </div>
    <div class="m04b">
      <div class="m04b_title">
        <h1><a href="index.php?m=content&c=index&a=lists&catid={PRODUCTCATID}" target="_blank">品牌推荐</a></h1>
        <dl>
          <dt><a href="index.php?m=content&c=index&a=lists&catid={PRODUCTCATID}" class="color08">首页</a></dt>
		  {pc:member action="get_product_category" num="9" order="id DESC" page="$page"}
		
				{loop $data $r}
				<dt>
				<a class="color08" href="index.php?m=content&c=index&a=lists&catid=24&s={$r[linkageid]}">{$r[name]}</a>
				</dt>
				{/loop}
			
		{/pc}
          
          
        </dl>
      </div>
      <ul>
	  {pc:content action="get_content" catid="18" num="25"  order="id DESC" page="$page"}
		
			{loop $data['data'] $r}
        <li><a href="#"><img src="{thumb($r[thumb],150,112)}" /></a><span><a href="{$r[url]}">{$r[title]}</a></span></li>
       {/loop}
	   {/pc}
      </ul>
    </div>
  </div>
  <!-- 板块4end-->
  <!-- 板块5begin-->
  <div id="main05">
    <div class="m05_tittle">
      <div class="left"><img src="{CSS_PATH}images/zindex_135.gif" /></div>
      <div class="menu">
        <div class="left"><img src="{CSS_PATH}images/zindex_84.gif" /></div>
        <div class="menu01"><a href="./zsschool.html">装饰学堂首页</a>|<a href="./zsschool_shejizhinan.html">设计指南</a>|<a href="./zsschool_jzwr.html">家装污染</a>|<a href="./zsschool_liucheng.html">装修流程</a>|<a href="./zsschool_wq.html">维权</a>|<a href="./zsschool_jzjl.html">监理</a></div>
        <div class="right"><img src="{CSS_PATH}images/zindex_88.gif" /></div>
      </div>
      <div class="right"><img src="{CSS_PATH}images/zindex_82.gif" /></div>
    </div>
    <div class="m051">
      <div class="m051_tittle">
        <h1><a href="{APP_PATH}index.php?m=content&c=index&a=lists&catid=13" class="p14 strong color04">装饰攻略</a></h1>
        <tt><a href="{APP_PATH}index.php?m=content&c=index&a=lists&catid=13" class="p12 color04">更多>></a></tt></div>
     {pc:content  action="lists" catid="13" order="listorder ASC"  num="5"}
		{php if($data) { }
       	{loop $data $ks $sv}
	       	{if $n==1}  	 
      <a href="{$sv[url]}">
      <img src="{thumb($sv[thumb],96,67)}" /></a>
      <p><a href="{$sv[url]}" class="strong color04">{str_cut($sv[title], 36)}</a></p>
      <ul>
     
		<ul>
	        {else}
	        	<li><a href="{$sv[url]}" title="{$sv[title]}">{str_cut($sv[title], 36)}</a></li>
	        {/if}
        
       	{/loop}
       	{php }else{ }
       	
       	{php } }
      	{/pc}
      </ul>
    </div>
    <div class="m052">
      <div class="m052_tittle">
        <h1><a href="{APP_PATH}index.php?m=content&c=index&a=choose_building_material" class="p14 strong color04">选材指南</a></h1>
        <tt><a href="{APP_PATH}index.php?m=content&c=index&a=choose_building_material" class="p12 color04">更多>></a></tt></div>
      {pc:content  action="lists" catid="25" order="listorder ASC"  num="5"}
		{php if($data) { }
       	{loop $data $ks $sv}
	       	{if $n==1}  	 
      <a href="{$sv[url]}">
      <img src="{thumb($sv[thumb],96,67)}" /></a>
      <p><a href="{$sv[url]}" class="strong color04">{str_cut($sv[title], 36)}</a></p>
      <ul>
     
		<ul>
	        {else}
	        	<li><a href="{$sv[url]}" title="{$sv[title]}">{str_cut($sv[title], 36)}</a></li>
	        {/if}
        
       	{/loop}
       	{php }else{ }
       	
       	{php } }
      	{/pc}
      </ul>
    </div>
    
    <div class="m053">
      <div class="m053_tittle">
        <h1><a href="{APP_PATH}index.php?m=content&c=index&a=lists&catid=11" class="p14 strong color04">风水环保</a></h1>
        <tt><a href="{APP_PATH}index.php?m=content&c=index&a=lists&catid=11" class="p12 color04">更多>></a></tt></div>
    	{pc:content  action="lists" catid="11" order="listorder ASC"  num="5"}
		{php if($data) { }
       	{loop $data $ks $sv}
	       	{if $n==1}  	 
      <a href="{$sv[url]}">
      <img src="{thumb($sv[thumb],96,67)}" /></a>
      <p><a href="{$sv[url]}" class="strong color04">{str_cut($sv[title], 36)}</a></p>
      <ul>
     
		<ul>
	        {else}
	        	<li><a href="{$sv[url]}" title="{$sv[title]}">{str_cut($sv[title], 36)}</a></li>
	        {/if}
        
       	{/loop}
       	{php }else{ }
       	<div class="zsschool0801"><div class="zsschool0801_title"><a href="{APP_PATH}index.php?m=content&c=index&a=lists&catid=13">攻略</a></div>
       	{php } }
      	{/pc}
      </ul>
    </div>
    <div class="m053">
      <div class="m053_tittle">
        <h1><a href="{APP_PATH}index.php?m=content&c=index&a=lists&catid=32" class="p14 strong color04">装修常识</a></h1>
        <tt><a href="{APP_PATH}index.php?m=content&c=index&a=lists&catid=32" class="p12 color04">更多>></a></tt></div>
     {pc:content  action="lists" catid="32" order="listorder ASC"  num="5"}
		{php if($data) { }
       	{loop $data $ks $sv}
	       	{if $n==1}  	 
      <a href="{$sv[url]}">
      <img src="{thumb($sv[thumb],96,67)}" /></a>
      <p><a href="{$sv[url]}" class="strong color04">{str_cut($sv[title], 36)}</a></p>
      <ul>
     
		<ul>
	        {else}
	        	<li><a href="{$sv[url]}" title="{$sv[title]}">{str_cut($sv[title], 36)}</a></li>
	        {/if}
        
       	{/loop}
       	{php }else{ }
       	
       	{php } }
      	{/pc}
      </ul>
    </div>
  </div>
  <!-- 板块5end-->
  <!--友情链接begin-->
<div class="m06">
	<div class="m06_title"><h1><a href="javascript:void(0)">友情链接</a></h1></div>
	<ul>
		{pc:link  action="type_list" siteid="$siteid" order="listorder DESC" num="10" return="dat"}
		{loop $dat $v}
              {if $type==0}
            <li>  <a href="{$v[url]}" target="_blank">{$v[name]}</a>  </li>
              {else}
             <li> <a href="{$v[url]}" target="_blank"><img src="{$v[logo]}" width="88" height="31" style="border: 1px solid #FFBE7A;"></a> </li>
              {/if}
		{/loop}
	{/pc}
	</ul>
</div>
<!-- 友情链接end-->
</div>
<!-- 内容end-->
<script type="text/javascript">
<!--
	var charset = '{CHARSET}';
	
		function selectcity(val){
			var area = $('#area').val();
			
			$.post("index.php?m=content&c=index&a=getarea", {
				id:val
			}, function(data) {
				var d = '<select name="info[area]">'+data.str+'</select>';
				$('#city_letter').val(data.letter);
				$('#area').html("");
				$('#area').html(d);
				
			},"json"
			);
		}
		function select_decoration(val){
			var house_type = $('#house_type').val();
			$.post("index.php?m=content&c=index&a=select_decoration", {
				id:val
			}, function(data) {
				if(data.str=='null'){
					var d = '<select disabled="disabled"  name="info[house_type]"><option>请选择</option></select>';
				}
				else{
					var d = '<select   name="info[house_type]">'+data.str+'</select>';
				}
				$('#city_letter').val(data.letter);
				$('#house_type').html("");
				$('#house_type').html(d);
				
			},"json"
			);
		}
//-->
</script>
<script type="text/javascript"> 
<!--
//只能放到最下面

{pc:content action="getcity"  return="city"}
	var c = '<select name="info[city]" id="cityid" onchange="selectcity(this.value);">';
	c +='<option value="0">请选择</option>';
	{loop $city $k $v}
		c += '<option value="{$v['linkageid']}">{$v['name']}</option>';
	{/loop}
	c += '</select>';
{/pc}
$('#citydiv').html(c);
{pc:member action="get_decoration_space"  return="city"}
var c = '<select name="info[decoration_space]"  id="decoration_spaceid" onchange="select_decoration(this.value);">';
c +='<option value="0">请选择</option>';
{loop $city $k $v}
	c += '<option value="{$v['linkageid']}">{$v['name']}</option>';
{/loop}
c += '</select>';
{/pc}
$('#decoration_space').html(c);
{pc:member action="get_decoration_style"  return="city"}
var c = '<select name="info[decoration_style]" id="decoration_styleid" >';
c +='<option value="0">请选择</option>';
{loop $city $k $v}
	c += '<option value="{$v['linkageid']}">{$v['name']}</option>';
{/loop}
c += '</select>';
{/pc}
$('#decoration_style').html(c);

//-->
</script>
<script type="text/javascript">
function sendzhaobiao(send){
	if(send==0){
		alert('只有业主会员才可以发布招标信息');
		return false;
	}else{
		var name=  $('#name').val();
		var phone = $('#phone').val();
		var decoration_spaceid = $('#decoration_spaceid').val();
		var decoration_styleid = $('#decoration_styleid').val();
		var cityid = $('#cityid').val();
		var budget = $('#budget').val();
		var size = $('#size').val();
		var title = $('#title').val();
		if(cityid==0){
			alert('请选择所在城市');
			return false;
		}
		if(phone==''){
			alert('请填写您的联系电话');$('#phone').focus();
			return false;
		}
		if(size==''){
			alert('请填写房屋面积');$('#size').focus();
			return false;
		}
		if(decoration_spaceid==0){
			alert('请选择装修空间');
			return false;
		}
		if(budget==''){
			alert('请填写装修预算');$('#budget').focus();
			return false;
		}
		if(name==''){
			alert('请填写您的姓名');$('#name').focus();
			return false;
		}
		
		if(decoration_styleid==0){
			alert('请选择风格分类');
			return false;
		}
		
		if(title==''){
			alert('请填写小区名字/地址');$('#title').focus();
			return false;
		}
	}
}
</script>
{template "content","footer"}
</body>
</html>
